﻿<?php
error_reporting(0);
session_start();
$user_type = $_SESSION["sess_user_type"];
if (isset($_REQUEST['tab'])) { 
    $tab = $_REQUEST['tab']; //มีการเรียกtab เข้าไปตาม tab นั้น
} else { 
    	$tab = "0"; // if not  logon yet
} 
include "common/commonFns.php";
?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ระบบจัดการสารสนเทศเพื่อสนับสนุนการช่วยเหลือเยียวยาผู้ได้รับผลกระทบฯ (ช่วงทดสอบ)</title>
<link href="css/styletabz.css" type="text/css" rel="stylesheet"/>
<link href="css/examples.css" type="text/css" rel="stylesheet"/>
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
<?php
if($tab=="gis"){
?>
<!--http://172.25.3.148/dsccmis=ABQIAAAAuV1l0e8ao6lQpLAtqzSahRSoThcetHOoJ3obIaFU3oDzkl4aYRRycMxlhW_1XbVc6mIMTTo1SSf6mA-->
<!--http://localhost/dsccmis=ABQIAAAAuV1l0e8ao6lQpLAtqzSahRS1BwxBjTKvRugj9Wn5cBSNIZ2UmRSisltaYGgCEKOVwOgi-LEXynkWdw-->
<!--http://www.dsccmis.wedev4u.com=ABQIAAAAuV1l0e8ao6lQpLAtqzSahRT9ACtmAG-H6IpHnWVULlEpUwe6oRROC8qBb08iT0z6AQ6WKRA8UZ-A6w-->
<!--<script  src="http://maps.google.com/maps?file=api&v=2&hl=th&key=ABQIAAAA35OzothtbS59VLlJgLJ1sxQ4o5npBMAuzfWCShENs-YBUBNY-hSiKDg_Gqr75DCytMoO6RCUSnIhwQ" type="text/javascript"></script>ABQIAAAAuV1l0e8ao6lQpLAtqzSahRQio2n07_mnCwnJXDBd3Wb1a7JyHRRRTWIdRKpOO2knUA-xaSTklg7Xow-->
<script src="http://maps.google.com/maps?file=api&key=ABQIAAAAuV1l0e8ao6lQpLAtqzSahRR7WcvzUPLpIn2rbYwveX5XXa9KYRScoFrh6VsXrPem-NuXyXDIyDCHqg" type="text/javascript"></script>
<!--<script  src="http://maps.google.com/maps?file=api&v=2&hl=th&key=ABQIAAAAuV1l0e8ao6lQpLAtqzSahRSoThcetHOoJ3obIaFU3oDzkl4aYRRycMxlhW_1XbVc6mIMTTo1SSf6mA" type="text/javascript"></script>-->

<script type="text/javascript" src="http://static.simile.mit.edu/timeline/api/timeline-api.js"></script>
<script src="lib/timemap.js" type="text/javascript"></script>
<script src="loaders/kml.js" type="text/javascript"></script>
<script src="common/jsfunction.js" type="text/javascript"></script>
<style>
  div#timelinecontainer{ height: 100; }
  div#mapcontainer{ height: 700; }
</style>
<?php
}
?>
</head>
	<div id="logo">
		<h3 align="center">A Management Information System for Supporting Relief Activities of Victims Affected by the Violence in the Southern Border Provinces</h3>
		<h1 align="center">ระบบสารสนเทศเพื่อการจัดการสนับสนุนการช่วยเหลือเยียวยาผู้ได้รับผลกระทบ
<div id="wrapper"><br />
		จากเหตุการณ์ความไม่สงบในจังหวัดชายแดนภาคใต้</h1>
		<h2 align="center">ศูนย์ประสานงานวิชาการให้ความช่วยเหลือผู้ได้รับผลกระทบจากเหตุความไม่สงบจังหวัดชายแดนใต้</h2>
	</div>
	<hr />
	<!-- end #logo -->
	<div id="header">
		<div id="menu">
		<ul><?php
			echo getMenu($tab,$user_type);
?></ul>
		</div>
		<!-- end #menu -->
	</div>
	<!-- end #header -->
	</div>
	<!-- end #header-wrapper -->
<body>
<table width="960" height="100%" border="0" align="center">
  <tr valign="top">
    <td height="417"><table width="960" border="0">
      <tr valign="top">
		<td align="left"></td>
 </tr><tr><td width="1024">
<?php
//เรียก page เปลี่ยนตาม tab
switch ($tab) { 
    case "logout":     //Manage User Tab1 
		//unset( $_SESSION['sess_user_type']);
		//unset( $_SESSION['sess_user_type']);
		session_destroy();
?>
		<script type="text/javascript">
			window.location.href='index.php';
		</script>
<?php
	    break; 
    case "gis":
		include "first_timemap.php";
	    break; 
    case "mtrgetdata";
	
		include "manage_monitordata/monitor_receive_data.php";
	    break; 
    case "esearch":  
		include "search_event.php";
	    break; 
    case "vsearch":  
		include "search_victim.php";
	    break;
    case "event":
		include "event.php";
	    break; 
	case "victim":
		include "victim.php";
	    break; 
	case "relief":
		include "relief.php";
	    break; 
    case "manageuser":
		include "manage_user.php";
	    break; 
    case "chngpwd":
		include "chngpwd.php";
	    break; 
    case "about":
		include "about.php";
	    break; 
    case "apply":
		include "apply.php";
	    break; 
    case "report":
		include "report.php";
	    break;
	case "occ":
		include "first_timemap.php";
	    break; 
    default:    
		include "login.php";
	 break; 
}
?>
    </td></tr></table></td>
  </tr>
  <tr>
  	<td>
    <table><tr>
    <td>
    <!-- Histats.com START (standard)--> <script type="text/javascript">document.write(unescape("%3Cscript src=%27http://s10.histats.com/js15_gif.js%27 type=%27text/javascript%27%3E%3C/script%3E"));</script> <a href="http://www.histats.com" target="_blank" title="free website stats program" ><script type="text/javascript" > try {Histats.startgif(1,1489391,4,8003,""); Histats.track_hits();} catch(err){}; </script></a> <noscript><a href="http://www.histats.com" alt="free website stats program" target="_blank" ><div id="histatsC"><img border="0" src="http://s4is.histats.com/8003.gif?1489391&103"></div></a> </noscript> <!-- Histats.com END --> &copy; DSCC Pattani, Developed by DSCC Pattani <br />Building 51B, 3rd Floor, Room 310, Faculty of Science and Technology. Prince of Songkla University. Pattani Campus. Muang, Pattani, Thailand. 94000.
    </td><td>
    <table><tr><td><a href="http://www.google.co.th/aclk?sa=l&ai=CtiE26jJTTt62F8i2rAfI0rWrAbGA5-kBscjt4xzRi_WESAgAEAEoAlCi08qDBWD9_ZyG1CCgAe_zyPYDyAEBqgQWT9BCfK6ISfjW0N0xnH1wO4ikHIFbNQ&sig=AOD64_2LjqbMi4dCFYRKu_cWW9bC6BvoEw&ved=0CAwQ0Qw&adurl=http://www.google.co.th/chrome%3Finstalldataindex%3Dth-welcomepage-experiment2%26brand%3DCHMB%26utm_campaign%3Dth%26utm_source%3Dth-ha-sea-th-sk%26utm_medium%3Dha" target="_blank"><img src="http://110.164.215.167/dsccmis/images/logo-chrome.png" width="65" title="รองรับการแสดงผลที่ดีกว่า ลองใช้ google chrome สิ" /></a></td><td>รองรับการแสดงผลได้ดีกว่า ลอง<br />Google Chrome สิ<a href="http://www.google.co.th/aclk?sa=l&ai=CtiE26jJTTt62F8i2rAfI0rWrAbGA5-kBscjt4xzRi_WESAgAEAEoAlCi08qDBWD9_ZyG1CCgAe_zyPYDyAEBqgQWT9BCfK6ISfjW0N0xnH1wO4ikHIFbNQ&sig=AOD64_2LjqbMi4dCFYRKu_cWW9bC6BvoEw&ved=0CAwQ0Qw&adurl=http://www.google.co.th/chrome%3Finstalldataindex%3Dth-welcomepage-experiment2%26brand%3DCHMB%26utm_campaign%3Dth%26utm_source%3Dth-ha-sea-th-sk%26utm_medium%3Dha" target="_blank"><img src="http://110.164.215.167/dsccmis/images/download.png" width="100" title="ดาวน์โหลด Google Chrome มาใช้งาน" /></a></td></tr></table>
    </td>
    </tr></table>
    </td>
  </tr>
</table>
</body>
</html>
